Perform a Pearson correlation test in R